<template>
  <!-- 社保模块 -->
  <div class="tool">
    <div class="box">
      <div class="left">
        <div class="left_details">
          <slot name="left">
            <!-- 左边自定义按钮 -->
            <span class="el-icon-info"> 员工管理 </span>
          </slot>
        </div>
      </div>

      <!-- 右边的自定义按钮 -->
      <slot name="right">
        <div class="right">
          <el-button size="mini" type="primary"> 新增</el-button>
          <el-button size="mini" type="primary" @click="exportExcel">
            导入
          </el-button>
        </div>
      </slot>
    </div>
  </div>
</template>

<script lang="js">
export default {
  name: 'Social',
  props: {
    isEmployeeShow: Boolean
  },
  data() {
    return {}
  },
  methods: {
    exportExcel() {
      this.$router.push('/employees/exportExcel/')
    }
  }
}
</script>

<style lang="scss" scope>
.tool {
  margin: 20px 20px;
  .box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    .left {
      .left_details {
        font-size: 14px;
        padding: 7px;
        background-color: #e6f7ff;
        ::before {
          color: #3f9afd;
          margin: 0 2px;
        }
      }
    }
    .right {
    }
  }
}
</style>
